<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>transform 变形--倾斜 skew</title>
		<style type="text/css">
			div {
				display: inline-block;
				width: 100px;
				height: 100px;
				margin: 100px;
				position: relative;
				background-color: #e9246b;
				transition: 2s;
				font-size: 0px; //没有这个4个盒子不会放在同一水平位置
				
			}
			.skew:hover {
				transform: skew(45deg);
			}
			.skewXY:hover {
				transform: skew(45deg, 30deg);
			}
			.skewX:hover {
				transform: skewX(75deg);
			}
			.skewY:hover {
				transform: skewY(15deg);
			}
		</style>
	</head>
	<body>
		<hr style="position: absolute;top: 100px;width: 90%;">
		<div class="skew"> </div>skew(45deg)
		<div class="skewXY"></div> skew(45deg, 30deg)
		<div class="skewX"></div> skewX(75deg)
		<div class="skewY"></div> skewY(15deg)
		<hr style="position: absolute;top: 200px;width: 90%;">
	</body>
</html>
